package mysql

import "gorm.io/gorm"

type Fresh struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(50);not null"`
	Price   float64 `gorm:"type:decimal(10,2);not null"`
	Stock   int64   `gorm:"type:int(11);not null"`
	Image   string  `gorm:"type:varchar(500);not null"`
	Info    string  `gorm:"type:varchar(500);not null"`
	ClassId int64   `gorm:"type:int(11);not null"`
}
type Class struct {
	gorm.Model
	ClassName string `gorm:"type:varchar(30);not null"`
}

type FreshClass struct {
	Fresh
	ClassName string
}
